#include "Runnable.h"

bool Runnable::s_bIsAllExit = false;


Runnable::Runnable()
{
	s_bIsAllExit = false;
	m_bIsCurrentExit = false;
}


bool Runnable::IsAutoDel()
{
	return false;
}

void Runnable::ExitAll()
{
	s_bIsAllExit = true;
}

bool Runnable::IsExit()
{
	if(m_bIsCurrentExit|| s_bIsAllExit)
	{
		return true;
	}
	else
	{
		return false;
	}
}

void Runnable::SetExit()
{
	m_bIsCurrentExit = true;
}